package dancetwotiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceActivitiesFragmentExchangeGift 碎片兑换礼物
type DanceActivitiesFragmentExchangeGift struct {
	Id             int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId   int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`
	ExchangeNumMin int64          `json:"exchangeNumMin" gorm:"column:exchange_num_min;type:bigint;default:0;not null;comment:兑换最小数量"` //兑换最小数量
	ExchangeNumMax int64          `json:"exchangeNumMax" gorm:"column:exchange_num_max;type:bigint;default:0;not null;comment:兑换最大数量"` //兑换最大数量
	GiftNum        int64          `json:"giftNum" gorm:"column:gift_num;type:bigint;default:0;not null;comment:礼物数量"`                  //礼物数量
	GiftId         string         `json:"giftId" gorm:"column:gift_id;type:varchar(256);not null;default:'';comment: 礼物id"`            //
	IsGiveCP       int64          `json:"isGiveCP" gorm:"column:is_give_cp;type:bigint;default:0;not null;comment:是否赠送CP"`             //是否赠送CP
	CreatedId      int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`            // 创建人id
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt      gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
